<div class="span8">
	<table class="table">
		<thead>
			<tr>
				<th>Most viewed</th>
			</tr>
		</thead>
		<tbody>
			<?php if(!empty($viewed)):?>
				<?php foreach($viewed as $view):?>
				<tr>
					<td>
						<a href="<?php echo site_url('blog/view/'.$view->id)?>" style="width:100%">
							<img width="170" height="150" alt="" src="http://img.youtube.com/vi/<?php echo $view->url?>/mqdefault.jpg">
							<?php echo $view->title?>
						</a>
					</td>
				</tr>
				<?php endforeach;?>
			<?php else:?>
			<tr>
				<td style="float:left">
					Their is no most viewed video.
				</td>
			</tr>
			<?php endif;?>	
		</tbody>
	</table>
</div>
<div class="span8">
	<table class="table">
		<thead>
			<tr>
				<th>Most liked</th>
			</tr>
		</thead>
		<tbody>
			<?php if(!empty($liked)):?>
				<?php foreach($liked as $like):?>
				<tr>
					<td>
						<a href="<?php echo site_url('blog/view/'.$like->id)?>" style="width:100%">
							<img width="170" height="150" alt="" src="http://img.youtube.com/vi/<?php echo $like->url?>/mqdefault.jpg">
							<?php echo $like->title?>
						</a>	
					</td>
				</tr>
				<?php endforeach;?>
			<?php else:?>
				<tr>
					<td style="float:left">
						Their is no liked video.
					</td>
				</tr>
			<?php endif;?>
		</tbody>
	</table>
</div>